<a href="http://listing.s268.xrea.com/listing/tracking/redirect.php?key_Id=130" target="_blank">http://listing.s268.xrea.com/listing/tracking/redirect.php?key_Id=130
</a>
<?
$this_week = get_week(2008,10,29);
print_r($this_week);
function get_week($yyyy, $mm, $dd) 
{
    $now_date = mktime(0,0,0,$mm,$dd,$yyyy);

    $w = (intval(date("w",$now_date)) + 6) % 7;
    
    $this_week[0] = date("Ymd",$now_date - 86400 * $w);
    $this_week[1] = date("Ymd",$now_date + 86400 * (6 - $w));
    
    return $this_week;
}

?>